// 版心
.wrapper {
  width: 1200px;
  margin: 0 auto;
}
// 头部
.header {
  height: 100px;
  background-color: #fff;
  .wrapper {
    display: flex;
    padding-top: 29px;
    .logo {
      width: 195px;
      height: 41px;
      // background-color: pink;
      a {
        display: block;
        height: 41px;
        background-image: url(../images/logo.png);
        font-size: 0;
      }
    }
    .nav {
      margin-left: 100px;
      ul {
        display: flex;
        li {
          margin-right: 26px;
          a {
            padding: 8px;
            font-size: 19px;
            // 行内元素改变垂直方向需要设置行高，行高越大垂直距离越远
            line-height: 35px;
            &:hover {
              border-bottom: 2px solid #00a4ff;
            }
          }
        }
      }
    }
    .search {
      position: relative;
      width: 412px;
      height: 40px;
      margin-left: 70px;
      background-color: #f3f5f7;
      border-radius: 20px;
      input {
        width: 412px;
        height: 40px;
        background: transparent;
        border: 0;
        outline: 0;
        padding-left: 19px;
      }
      a {
        position: absolute;
        display: block;
        top: 13px;
        right: 20px;
        width: 16px;
        height: 16px;
        background: url(../images/search.png);
      }
    }
    .user {
      margin-left: 30px;
      img {
        vertical-align: middle;
      }
      span {
        color: #666666;
      }
    }
  }
}
// 广告
.banner {
  height: 420px;
  background-color: #0092cb;
  .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 420px;
    background: url(../uploads/banner.png);
  }
  .left {
    width: 191px;
    height: 420px;
    padding-top: 3px;
    background-color: rgba(0, 0, 0, 0.42);
    a {
      display: flex;
      justify-content: space-between;
      height: 46px;
      padding: 0 20px;
      line-height: 46px;
      font-size: 16px;
      color: #fff;
      &:hover {
        color: #00a4ff;
        background-color: rgba(0, 0, 0, 0.3);
      }
    }
  }
  .right {
    width: 218px;
    height: 305px;
    background-color: #209dd5;
    padding-top: 18px;
    border-radius: 20px;
    h3 {
      padding-left: 14px;
      height: 30px;
      font-size: 15px;
      color: #ffffff;
    }
  }
  .content {
    width: 218px;
    height: 257px;
    padding: 14px;
    background-color: #fff;
    border-radius: 10px;
    dl {
      margin-bottom: 10px;
      border-bottom: 1px solid #e0e0e0;
    }
    dt {
      font-size: 14px;
      font-weight: 700;
    }
    dd {
      margin: 8px 0;
      font-size: 12px;
      color: #7d7d7d;
      span {
        color: #00a4ff;
      }
    }
    a {
      display: block;
      height: 32px;
      background-color: #00a4ff;
      border-radius: 16px;
      text-align: center;
      line-height: 32px;
      color: #ffffff;
    }
  }
}
// 精品推荐
.recommend {
  display: flex;
  justify-content: space-between;
  height: 60px;
  background-color: #fff;
  margin-top: 12px;
  padding: 0 20px;
  line-height: 60px;
  box-shadow: 0px 1px 2px 0px rgba(211, 211, 211, 0.5);
  h3 {
    font-size: 18px;
    font-weight: normal;
    color: #00a4ff;
  }
  ul {
    display: flex;
    flex: 1;
    a {
      padding: 0 24px;
      border-right: 1px solid #e0e0e0;
      font-size: 18px;
      &:hover {
        color: #00a4ff;
      }
    }
    li:last-child a {
      border-right: 0;
    }
  }
  .modify {
    font-size: 16px;
    color: #00a4ff;
  }
}
// 课程推荐
.hd {
  display: flex;
  justify-content: space-between;
  height: 30px;
  // background-color: pink;
  margin: 30px 0 15px;
  line-height: 30px;
  h3 {
    font-size: 21px;
    font-weight: normal;
  }
  .all {
    font-size: 14px;
    color: #999;
  }
}
.bd {
  // height: 556px;
  ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    li {
      width: 228px;
      height: 271px;
      background-color: #fff;
      margin-bottom: 14px;
      &:hover {
        margin-top: -10px;
        box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.3);
      }
      a {
        display: block;
        height: 100%;
        h4 {
          height: 53px;
          font-size: 14px;
          font-weight: normal;
          margin: 20px 20px 0;
        }
        p {
          color: #999;
          margin-left: 20px;
          span {
            color: #fa6400;
          }
        }
      }
    }
  }
}

// 前端开发工程师
.hd ul {
  display: flex;
  a {
    margin: 0 30px;
    font-size: 16px;
  }
  .hot {
    color: #00a4ff;
  }
}

.bd {
  display: flex;
  justify-content: space-between;
  .left {
    width: 228px;
    height: 386px;
  }
  .right {
    width: 957px;
    height: 386px;

    .top {
      height: 100px;
      margin-bottom: 15px;
    }
    .bottom {
      height: 271px;
    }
  }
}

// 人工智能开发
.bd .ai {
  width: 1200px;
}

// 底部
.footer {
  height: 273px;
  background-color: #ffffff;
  margin-top: 45px;
  padding-top: 60px;
  .wrapper {
    display: flex;
    justify-content: space-between;
  }
  .left {
    width: 432px;
    height: 148px;
    .f-logo {
      display: block;
      width: 195px;
      height: 41px;
      background: url(../images/logo.png);
    }
    p {
      margin: 24px 0 14px;
      font-size: 12px;
      color: #666;
      line-height: 17px;
    }
    .app {
      display: block;
      width: 120px;
      height: 36px;
      border: 1px solid #00a4ff;
      color: #00a4ff;
      text-align: center;
      line-height: 36px;
      &:hover {
        background-color: #00a4ff;
        color: #fff;
      }
    }
  }

  .right {
    display: flex;
    dl {
      margin-left: 130px;
    }
    dt {
      height: 35px;
      font-size: 16px;
    }
    dd {
      height: 24px;
      a {
        font-size: 14px;
        color: #666;
      }
    }
  }
}
